import http from '@/utils/request'

/**
 * 获取列表数据
 * @module apis/remoteFile
 */
export function fetchFiles(id: string) {
  return http.get('/api/remoteFile/' + id)
}
/**
 * 获取远程文件地址
 */
export function remoteQrcode(host?: string) {
  return http.post('/api/remoteFile/RemoteQrcode', { params: { host } })
}

export default {
  remoteQrcode,
  fetchFiles
}
